#!/usr/bin/env python3
"""
脚本名称：ch39_exe.py
功能描述： 演示模块、类、对象
作者：Gavin
创建日期：2022-05-06
版本：1.0
依赖库：无
使用方法： python ch39_exe.py
"""


class Song(object):
    def __init__(self, lyrics):
        self.lyrics = lyrics

    def sing_me_a_song(self):
        for line in self.lyrics:
            print(line)


happy_bday = Song(["Happy birthday to you", "I don't want to get sued", "So I'll stop right there"])

bulls_on_parade = Song(["They rally around the family", "With pockets full of shells"])

happy_bday.sing_me_a_song()
bulls_on_parade.sing_me_a_song()
